package com.study4j.common.config;

/**
 * @Description:
 * @Author: jiangbin
 * @Date: Created in 2018/11/18 17:40
 */

import org.springframework.context.annotation.Configuration;

/**
 * @author jiangbin
 * @version 1.0.0
 * @description 过滤器配置
 * @date 2018/11/18 17:40
 */
@Configuration
public class FilterConfig {
    /*    @Bean
    public FilterRegistrationBean someFilterRegistration1() {
        //新建过滤器注册类
        FilterRegistrationBean registration = new FilterRegistrationBean();
        registration.setFilter(new CORSFilter());

        // 设置过滤器的URL模式
        registration.addUrlPatterns("/*");
        return registration;
    }*/
}
